import axios from "./http.js";
import _ from "lodash";

// 获取招募获取的主播数据-按部门分
export function getSeestarReport(options) {
  let url = "/mps/statistics/statusCountGroup";
  const opts = _.merge({}, options || {});

  return axios.get(url, opts);
}
// 下载招募获取的主播数据-按部门分
export function downSeestarReport(options) {
  let url = "/mps/statistics/statusCountGroupExport";
  const opts = _.merge({}, options || {});
  opts.responseType = "blob";
  return axios.get(url, opts);
}
// 获取招募获取的主播数据-按平台分
export function getSeestarReportByPlatform(options) {
  let url = "/mps/statistics/statusCountByPlatform";
  const opts = _.merge({}, options || {});

  return axios.get(url, opts);
}
// 下载招募获取的主播数据-按平台分
export function downSeestarReportByPlatform(options) {
  let url = "/mps/statistics/statusCountByPlatformExport";
  const opts = _.merge({}, options || {});
  opts.responseType = "blob";

  return axios.get(url, opts);
}
